/*
 * Tabela.java
 *
 * Created on September 20, 2007, 12:01 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package pd1;

import javax.swing.table.AbstractTableModel;

/**
 *
 * @author Pizzol
 */
public class Tabela extends AbstractTableModel {
    
    int row;
    int collumns;
    
    double valores[][];
    
    /** Creates a new instance of Tabela */
    public Tabela(int row, int columns) {
        this.row = row;
        this.collumns = columns;
        valores = new double[row][collumns];
    }
    
  
            public int getColumnCount() {
                return row;
            }
            public int getRowCount() {
                return collumns;
            }
            public Object getValueAt(int rowIndex, int columnIndex) {
                System.out.println("r "+rowIndex+" c "+columnIndex);
                return valores[rowIndex][columnIndex];
            }
    
}
